package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.system.entity.AbdulBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 会员充值记录实体类
 */
@Data
@TableName("member_recharge_records")
@ApiModel("会员充值记录")
public class MemberRechargeRecords extends AbdulBaseEntity {

    @ApiModelProperty(value = "主键ID", example = "1")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "充值单号", example = "R202504050001")
    private String rechargeId;

    @ApiModelProperty(value = "订单类型: 充值卡充值 2-定额卡", example = "1")
    private String orderType;

    @ApiModelProperty(value = "充值前余额(元)", example = "100.00")
    private BigDecimal preBalance;

    @ApiModelProperty(value = "充值前赠送余额(元)", example = "50.00")
    private BigDecimal preGiftBalance;

    @ApiModelProperty(value = "充值金额(元)", example = "200.00")
    private BigDecimal rechargeAmount;

    @ApiModelProperty(value = "赠送金额(元)", example = "50.00")
    private BigDecimal giftAmount;

    @ApiModelProperty(value = "状态 1-付款成功  0-付款失败", example = "1")
    private Integer status;

    @ApiModelProperty(value = "充值门店", example = "旗舰店")
    private String rechargeStore;

    @ApiModelProperty("支付方式")
    private String paymentMethod;

    @ApiModelProperty("获得积分")
    private Integer points;

    @ApiModelProperty(value = "会员ID", example = "2001")
    private Long memberId;

    @ApiModelProperty(value = "卡号", example = "6228480000000001")
    private String cardNumber;
}
